<!DOCTYPE html>
<html>
	 <meta charset="UTF-8">
  <meta content="width=device-width,initial-scale=1,maximum-scale=4,minimum-scale=1" name=viewport>
  <meta http-equiv=Pragma contect=no-cache>
  <meta name=apple-mobile-web-app-capable content=yes>
  <meta name=apple-mobile-web-app-status-bar-style content=black>
  <meta name=apple-mobile-web-app-title content="">
  <meta name=format-detection content="telephone=no, email=no">
  <meta name=renderer content=webkit>
  <meta name=HandheldFriendly content=true>
  <meta name=screen-orientation content=portrait>
  <meta name=x5-orientation content=portrait>
  <meta name=full-screen content=yes>
  <meta name=x5-fullscreen content=true>
  <meta name=browsermode content=application>
  <meta name=x5-page-mode content=app>
  <meta name=msapplication-tap-highlight content=no>
		<title id="title">K线</title>
		
		<script src="/zc/js/mui.min.js"></script>
    	<script src="/zc/js/jquery.min.js"></script>
    	<script src="/zc/js/template.js"></script>
    	<script src="/zc/js/kline.min.js"></script>
	<body>
		<div class="header">
			<!-- <span id="bt">K线</span> -->
			<a href="javascript:history.go(-1)" class="return"></a>
		</div>
		<!-- <div style="height: 45px;"></div> -->
		
		<!--正文-->
		<div class="TRX_xx">
			
			
			<!-- <div class="gdl">
				<b>O:5249.50</b>
				<b>&nbsp;&nbsp;H:5251.29</b>
				<b>&nbsp;&nbsp;L:5251.29</b>
				<b>&nbsp;&nbsp;C:5251.29</b>
				<b>&nbsp;&nbsp;R：-0.01600152%</b>
			</div>
			
			<div class="gdl">
				<b>MP5:5249.510</b>
				<b>&nbsp;&nbsp;MP10:5249.560</b>
				<b>&nbsp;&nbsp;MP30:5249.560</b>
			</div> -->
		</div>
		<!-- K线图 -->
		<div id="kline_container"></div>
	</body>
	
	<script>
		function getUrlParam(name){
		    var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
		    var r = window.location.search.substr(1).match(reg);
		    if (r!=null) return unescape(r[2]); return null;
		}
      	
		var bidui = getUrlParam('bidui');

      	var kline = new Kline({
            element: "#kline_container",
            width: $(window).width(),
            height: 650,
            theme: 'dark', // light/dark
            language: 'zh-cn', // zh-cn/en-us/zh-tw
            ranges: ["1m"],
            symbol: "ETH",
            symbolName: "USDT",
            type: "poll", // poll/socket
            url: "/index/apihq/getticker?bidui="+bidui+"",
            // /zc/mock.json
            limit: 1000,
            intervalTime: 10000,
            debug: false,
            showTrade: false,
            reverseColor: true,
			onResize: function(width, height) {
				console.log("chart resized: " + width + " " + height);
			}
        });

        kline.draw();
      

        // kline.resend(); 



	</script>
	
	
</html>
